//
//  BaseChildViewController.m
//  BaoVn
//
//  Created by Le Anh Tai on 11/8/14.
//  Copyright (c) 2014 Le Anh Tai. All rights reserved.
//

#import "BaseChildViewController.h"

@interface BaseChildViewController ()

@end

@implementation BaseChildViewController

- (void)setFrameContentView
{
    int top =  44;//44 is hei of navigation bar
    int offsetTop = 0;
    
    if (IS_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_IOS7)
    {
        offsetTop = 20;
    }
    //iOS 6
    else
    {
        top = 0;
    }
    
    _contentView.frame = RECT(0, top + offsetTop, self.view.width, self.view.height - top - offsetTop);
}

@end
